# a = {}
# print(type(a))
# b = dict()
# print(type(b))
#
# a = {
#     'id': 1,
#     'name': 'zhangsan',
#     'score': 90
# }
#
# print(a.items())

# print(a.values())

# print(a.keys())

# for key in a:
#     print(key, a[key])

# a.pop('name')
# print(a)

# # 这个操作就是往字典中插入新的键值对
# a['score'] = 100



# print(a['id'])
# print(a[100])
# # 查找到之后可以修改 value
# a['id'] = 3
# print(a['id'])

# print(a['id'])
# print(a[100])

# print('id' in a)
# print('classId' in a)

# print(hash(0))
# print(hash(3.14))
# print(hash('hello'))
# print(hash(True))
# print(hash((1, 2, 3, 4)))

# 列表是不可哈希的
print(hash([1, 2, 3, 4]))
# 字典也是不可哈希的
# print(hash(dict()))